/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.com.smart.hawk.utilities;

import java.awt.Component;
import javax.swing.AbstractCellEditor;
import javax.swing.JComponent;
import javax.swing.JTable;
import javax.swing.table.TableCellEditor;

/**
 *
 * @author Andres
 */
public class HawkCellEditorMgr extends AbstractCellEditor implements TableCellEditor{

    JComponent component;
    
    @Override
    public Object getCellEditorValue() {
       return component;
    }

    @Override
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
        System.out.println(value);
        if(value instanceof JComponent){
            component = (JComponent)value;
        return component;
        }
        return null;
    }
    
}
